angular.module('app.setting')

    .factory('settingService', ["$http", "config","Upload", function ($http, config,Upload) {

        var baseUrl = config.baseUrl;

        var ret = {};

        //发货单单个查询
        ret.getSettings = function() {
            var url = baseUrl + "/settings";
            return $http.get(url);
        };

        //发货单查询
        ret.setSettings = function(settingInfo) {
            var url = baseUrl + "/settings/"+settingInfo.id;
            return $http.put(url,settingInfo);
        };

        return ret;
    }]);